﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            if (5 > 3)
            {
                Console.WriteLine("5 > 3");
            }

            Console.WriteLine("我是后续的代码");
            Console.ReadKey();

            bool wifi = false;

            if (wifi == false)
            {
                Console.WriteLine("无网络");
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("游戏继续运行");
                Console.ReadKey();
            }

            string username = "Fancy";
            string password = "fancy.";

            if (username == "Fancy" && password == "fancy.")
            {
                Console.WriteLine("登录成功");
            }
            else
            {
                Console.WriteLine("密码错误");
            }

            int total1 = 0;

            for (int i = 0; i <= 100; i++)
            {
                total1 += i;
            }

            Console.WriteLine("total=" + total1);

            int a = 1;
            int total2 = 0;

            while (a <= 100)
            {
                total2 += a;
                a++;
            }
            Console.WriteLine("total2=" + total2);

            for (int i = 0; i <= 30; i++)
            {
                Console.WriteLine("今天是第1月的第{0}天", i);
                for (int j = 0; j <= 3; j++)
                {
                    Console.WriteLine("今天的第{0}顿饭", j);
                }
            }

            for (int i = 1; i <= 9; i++)
            {
                for (int j = 1; j <= i; j++)
                {
                    Console.Write("{0} * {1} = {2}\t", j, i, i * j);
                }
                Console.WriteLine();
            }

            do
            {
                Console.WriteLine("Fancy");
            } while (a == 1);

        }
    }
}
